// 商品卡片样式
.goods__card-hover {
    &:hover {
        box-shadow: 2px 2px 20px 10px #eaeaea;
    }
}

// 容器样式，默认竖向排列，居中
.goods-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    .goods-card{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        flex-shrink: 0;
        img {
            margin-top: 11%;
            object-fit: contain;
        }
    }
}

.margin_right_10px {
    margin-right: 10px;
}

.tips-tag {
    background-image: linear-gradient(1.5708rad, rgb(201,10,44),rgb(249,42,74));
    padding: 0 4px;
    vertical-align: middle;
    border-radius: 4px;
    max-width: 114px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    overflow: hidden;
    font-size: 12px;
    color: #eaf4fc;
    margin-right: 2%;
    flex-shrink: 0;
    -webkit-box-align: center;
    white-space: nowrap;
}

.desc {
    padding: 0 10px;
    flex-shrink: 0;
    margin-bottom: 10px;
    font-size: 13px;
    opacity: 0.5;
    font-weight: 400;
    color: #000;
    height: 18px;
    line-height: 18px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    span {
        display: inline-block;
        font-size: 16px;
        font-weight: 400;
        color: rgb(207, 10, 44);
        line-height: 21px;
    }
    .oldprice {
        color: #000;
        margin-left: 8px;
        line-height: 16px;
        opacity: 0.5;
        text-decoration-line: line-through;
        font-weight: 400;
        font-size: 12px;
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }
}

.first-tag {
    margin-top: 10px;
    padding: 0 8px;
    line-height: 21px;
    max-width: 100%;
    color: rgb(207, 10, 44);
    font-weight: 400;
    text-align: center;
    font-size: 12px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    background-color: rgb(251, 231, 234);
}